package com.taomus.mytools.simplec.utils;

public enum ErrorEnum {
	SYNTAX_ERROR(1,"syntax error"),
	TYPE_ERROR(2,"type error"),
	VAR_UNDEFINED(3,"varible undefined"),
	UNKNOWN(4,"unknown error")
	;
	
	private int code;
	private String text;
	private ErrorEnum(int code,String text){
		this.code = code;
		this.text = text;
	}
	
	public int getCode(){
		return this.code;
	}
	public String getText(){
		return this.text;
	}
}
